Skip to content

feat(api): report the display category on tile57_feature#14

Merged
beetlebugorg merged 1 commit into
mainfrom
feat/feature-disp-cat
Jul 12, 2026
Merged

feat(api): report the display category on tile57_feature#14
beetlebugorg merged 1 commit into
mainfrom
feat/feature-disp-cat

Conversation

@beetlebugorg

Copy link
Copy Markdown
Owner

The engine knew each feature's S-52 display category — it gates on it via mariner.display_base/standard/other — but the vector surface dropped it when it built CFeature, so a host got cls/scamin/plane and no way to tell a display-base feature from a standard one.

A host that applies SCAMIN itself (the surface path hands SCAMIN over deliberately: the category gate runs at GATE_ZOOM so SCAMIN always passes, and the host hides by zoom in a shader) cannot implement "SCAMIN shall not be applied to display base" without it.

Add tile57_disp_cat (BASE/STANDARD/OTHER) and a disp_cat field carrying the baked cat, so the rule is one comparison on the host side.

The engine knew each feature's S-52 display category — it gates on it via
mariner.display_base/standard/other — but the vector surface dropped it when
it built CFeature, so a host got cls/scamin/plane and no way to tell a
display-base feature from a standard one.

A host that applies SCAMIN itself (the surface path hands SCAMIN over
deliberately: the category gate runs at GATE_ZOOM so SCAMIN always passes,
and the host hides by zoom in a shader) cannot implement "SCAMIN shall not be
applied to display base" without it.

Add tile57_disp_cat (BASE/STANDARD/OTHER) and a disp_cat field carrying the
baked cat, so the rule is one comparison on the host side.
@beetlebugorg beetlebugorg merged commit b634c53 into main Jul 12, 2026
5 checks passed
@beetlebugorg beetlebugorg deleted the feat/feature-disp-cat branch July 12, 2026 20:46
@beetlebugorg beetlebugorg restored the feat/feature-disp-cat branch July 12, 2026 22:09
@beetlebugorg beetlebugorg deleted the feat/feature-disp-cat branch July 14, 2026 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant